From: Sachin Kamat Date: Fri, 27 Sep 2013 04:06:38 +0000 (+0530) Subject: staging: cxt1e1: linux.c: Return negative error codes X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~7760^2~528 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bcf7bea44e50e85e8401f8667ecc8c79a3708e58;p=linux-4.9.git staging: cxt1e1: linux.c: Return negative error codes Return negative error codes as is followed in the rest of the kernel. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c index 598e6ba96955..9b483739881a 100644 --- a/drivers/staging/cxt1e1/linux.c +++ b/drivers/staging/cxt1e1/linux.c @@ -230,7 +230,7 @@ c4_wq_port_init (mpi_t *pi) __func__, name, pi->portnum); /* RLD DEBUG */ #endif if (!(pi->wq_port = create_singlethread_workqueue (name))) - return ENOMEM; + return -ENOMEM; return 0; /* success */ }